#pragma once
#include "event.h"
#include <iostream>
#include <sys/socket.h>  
#include <sys/types.h>  
#include <netinet/in.h>  
#include <string.h>  
#include <fcntl.h> 
#include <arpa/inet.h>


class conn{
protected:
	int netfd;
	struct event_base *main_base;
public:
	struct event netEvent;
public:
	conn();
	virtual ~conn();

	virtual void input() = 0;
	virtual void output() = 0;
	virtual void timeout() = 0;
};

